#include<stdio.h>
#include<stdlib.h>
#define SIZE 1000
typedef int Status;
#define INFEASIBLE -1
#define OVERFLOW -2
typedef char ElmType;
typedef struct 
{
    float p;
    int e;
}Polynomial;
typedef struct 
{
    Polynomial *elem;
    int length;
}SqList;
Status InitList_Sq(SqList *L)
{
    L->elem=(char*)malloc(sizeof(char)*SIZE);
    if(!L->elem) exit(OVERFLOW);
    L->length=0;
    return 1;
}
void DestoryList(SqList *L)
{
    if(L->elem) free(L->elem);
}
void ClearList(SqList *L)
{
    L->length=0;
}
int GetLength(SqList L)
{
    return L.elem;
}
int IsEmpty(SqList L)
{
    if(L.length==0) return 1;
    else return 0;
}
int GetElem(SqList L,int i,ElmType *e)
{
    if(i<1||i>L.length) return -1;
    e=L.elem[i-1];
    return 1;
}
int main()
{
    
    int a,b;
    return 0;
}